﻿using System;
using System.Runtime.InteropServices;

namespace Vtron.HipcConfigurationTools.Domain
{
    /// <summary>
    /// 网络参数设置的应答
    /// </summary>
    /// <remarks>
    /// typedef  struct
    /// {
    ///     T_HIPC_NET_HEADER	   head;
    ///     Uint8  dhcp;                          
    ///     T_HIPC_NET_INFO netInfo;
    /// } T_HIPC_NET_CONFIG_RESP;
    /// </remarks>
    [Serializable]
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct T_HIPC_NET_CONFIG_RESP
    {
        #region Fields

        /// <summary>
        /// 网络协议数据头
        /// </summary>
        public T_HIPC_NET_HEADER head;

        /// <summary>
        /// dhcp
        /// </summary>
        /// <remarks>
        /// 1：dhcp 0：静态ip地址  
        /// </remarks>
        public byte dhcp;

        /// <summary>
        /// T_HIPC_NET_INFO
        /// </summary>
        public T_HIPC_NET_INFO netInfo;

        #endregion
    }
}
